<template>
  <div class="box">
    
    <div class="example">
      <img src="../../../assets/image/shop/example.png" alt="">
      <div class="collect">
        <i class="el-icon-star-off" style="color: #EC6C15;margin-right: 0.04rem;"></i>
        <span>收藏</span>
      </div>
      <!-- <div class="collect1">
        <i class="el-icon-star-on" style="color: #EC6C15;margin-right: 0.04rem;"></i>
        <span>已收藏</span>
      </div> -->

      <div class="join">加入购物车</div>
      <div class="join join1">立即下单</div>
    </div>

    <div class="producemsg">
      <div class="item">艾薇服饰&TDQ6003</div>
      <div class="item1">男童秋装外套2023新款男童外款男童外款男童外</div>
      <div class="price">
        <div class="num"> <span style="font-size: 0.14rem;">¥</span> 36.00</div>
        <div class="sellnum">分销量：13</div>
      </div>
    </div>

  </div>
</template>

<script>

export default {
  components: {
    
  },

  data () {
    return {
      
    }
  },
  created () {},
  methods: {
    
  }
}
</script>

<style scoped lang="scss">
.box:hover{
  .example .join{
    display: block !important;
  }
}
.box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  .example{
    width: 2.18rem;
    height: 2.18rem;
    position: relative;
    img{
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
    }
    .collect{
      width: 0.64rem;
      height: 0.24rem;
      line-height: 0.24rem;
      text-align: center;
      border-radius: 0.2rem;
      color: #EC6C15;
      font-size: 0.12rem;
      position: absolute;
      top: 0.08rem;
      right: 0.08rem;
      background: #FFFFFF;
    }
    .collect1{
      width: 0.64rem;
      height: 0.24rem;
      line-height: 0.24rem;
      text-align: center;
      color: #EC6C15;
      font-size: 0.12rem;
      position: absolute;
      top: 0.08rem;
      right: 0.08rem;
    }
    .join{
      width: 1.08rem;
      height: 0.32rem;
      line-height: 0.32rem;
      text-align: center;
      font-size: 0.12rem;
      color: #FFFFFF;
      position: absolute;
      left: 0;
      bottom: 0;
      background: #EC6C15;
      display: none;
      cursor: pointer;
    }
    .join1{
      position: absolute;
      left: 1.1rem !important;
      bottom: 0 !important;
    }
  }
  .producemsg{
    padding: 0.09rem 0.06rem 0.15rem 0.06rem;
    width: calc(100% - 0.12rem);
    height: 0.68rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    .item{
      width: 100%;
      text-align: left;
      font-size: 0.12rem;
      color: #000000;
    }
    .item1{
      margin-top: 0.08rem;
      width: 90%;
      text-align: left;
      font-size: 0.12rem;
      color: #666666;
      text-overflow: ellipsis;
      overflow: hidden;
      word-break: break-all;
      white-space: nowrap;
    }
    .price{
      width: 100%;
      flex: 1;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .num{
        font-size: 0.18rem;
        color: #E22A1F;
      }
      .sellnum{
        font-size: 0.12rem;
        color: #999999;
      }
    }
  }
}
</style>
